/***********************************************************************
 * Module:  TrainPneu.java
 * Author:  qmpq
 * Purpose: Defines the Class TrainPneu
 ***********************************************************************/

package chrono;

import java.util.*;

public class TrainPneu {
   private int numeroTrainPneu_;
   private TypePneu typePneu_;
   private Durete durete_;
   private int nombreDeTourEffectue_;
   private boolean affiche_;
   
   private java.util.List<Pneu> collectionPneu_;
   
   
   /** @pdGenerated default getter */
   public java.util.List<Pneu> getCollectionPneu_() {
      if (collectionPneu_ == null)
         collectionPneu_ = new java.util.ArrayList<Pneu>();
      return collectionPneu_;
   }
   
   /** @pdGenerated default iterator getter */
   public java.util.Iterator getIteratorCollectionPneu_() {
      if (collectionPneu_ == null)
         collectionPneu_ = new java.util.ArrayList<Pneu>();
      return collectionPneu_.iterator();
   }
   
   /** @pdGenerated default setter
     * @param newCollectionPneu_ */
   public void setCollectionPneu_(java.util.List<Pneu> newCollectionPneu_) {
      removeAllCollectionPneu_();
      for (java.util.Iterator iter = newCollectionPneu_.iterator(); iter.hasNext();)
         addCollectionPneu_((Pneu)iter.next());
   }
   
   /** @pdGenerated default add
     * @param newPneu */
   public void addCollectionPneu_(Pneu newPneu) {
      if (newPneu == null)
         return;
      if (this.collectionPneu_ == null)
         this.collectionPneu_ = new java.util.ArrayList<Pneu>();
      if (!this.collectionPneu_.contains(newPneu))
         this.collectionPneu_.add(newPneu);
   }
   
   /** @pdGenerated default remove
     * @param oldPneu */
   public void removeCollectionPneu_(Pneu oldPneu) {
      if (oldPneu == null)
         return;
      if (this.collectionPneu_ != null)
         if (this.collectionPneu_.contains(oldPneu))
            this.collectionPneu_.remove(oldPneu);
   }
   
   /** @pdGenerated default removeAll */
   public void removeAllCollectionPneu_() {
      if (collectionPneu_ != null)
         collectionPneu_.clear();
   }

}